# encoding:utf-8
#命令行传入的的参数
CMDINPUT = {}

#API全局变量字典
GLOBAL_VALS = {}

# 临时存储数据列表
TMPLIST = []

# 存储环境变量字典
ENV_DICT = {}

# 存储执行的excel文件的字典
EXCEL_DICT = {}

# 互联网医院[医师大赛]参赛作品数据统计
YSDS = {
    "todayData": {
        "numberEntries": "",  # 参赛作品数量
        "numberParticipants": "",  # 参赛人数
        "unreviewedEntries": "",  # 未初审
        "entriesNotPassingPreliminaryReview": "",  # 初审拒绝
        "entriesPassingPreliminaryReview": "",  # 初审通过
        "unreviewedForRe-review": "",  # 未复审
        "entriesNotPassingRe-review": "",  # 复审拒绝
        "entriesPassingRe-review": "",  # 复审通过
        "unallocated":"", # 未分配
        "assigned":"", # 已分配
        "re-reviewedButNotScored": "",  # 复审通过未评分
        "score≥80": "",  # 评分大于等于80分
        "score<80": "",  # 评分小于80分
        "invitationPending": "",  # 邀请中
        "invited": ""  # 已邀请
    },
    "yesterdayData": {
        "numberEntries": "",  # 参赛作品数量
        "numberParticipants": "",  # 参赛人数
        "unreviewedEntries": "",  # 未初审
        "entriesNotPassingPreliminaryReview": "",  # 初审拒绝
        "entriesPassingPreliminaryReview": "",  # 初审通过
        "unreviewedForRe-review": "",  # 未复审
        "entriesNotPassingRe-review": "",  # 复审未通过
        "entriesPassingRe-review": "",  # 复审通过
        "unallocated":"", # 未分配
        "assigned":"", # 已分配
        "re-reviewedButNotScored": "",  # 复审通过未评分
        "score≥80": "",  # 评分大于等于80分
        "score<80": "",  # 评分小于80分
        "invitationPending": "",  # 邀请中
        "invited": ""  # 已邀请
    },
    "yesterdayAndBeforeData": {
        "numberEntries": "",  # 参赛作品数量
        "numberParticipants": "",  # 参赛人数
        "unreviewedEntries": "",  # 未初审
        "entriesNotPassingPreliminaryReview": "",  # 初审拒绝
        "entriesPassingPreliminaryReview": "",  # 初审通过
        "unreviewedForRe-review": "",  # 未复审
        "entriesNotPassingRe-review": "",  # 复审未通过
        "entriesPassingRe-review": "",  # 复审通过
        "unallocated":"", # 未分配
        "assigned":"", # 已分配
        "re-reviewedButNotScored": "",  # 复审通过未评分
        "score≥80": "",  # 评分大于等于80分
        "score<80": "",  # 评分小于80分
        "invitationPending": "",  # 邀请中
        "invited": ""  # 已邀请
    },
    "allData": {
        "numberEntries": "",  # 参赛作品数量
        "numberParticipants": "",  # 参赛人数
        "unreviewedEntries": "",  # 未初审
        "entriesNotPassingPreliminaryReview": "",  # 初审拒绝
        "entriesPassingPreliminaryReview": "",  # 初审通过
        "unreviewedForRe-review": "",  # 未复审
        "entriesNotPassingRe-review": "",  # 复审未通过
        "entriesPassingRe-review": "",  # 复审通过
        "unallocated":"", # 未分配
        "assigned":"", # 已分配
        "re-reviewedButNotScored": "",  # 复审通过未评分
        "score≥80": "",  # 评分大于等于80分
        "score<80": "",  # 评分小于80分
        "invitationPending": "",  # 邀请中
        "invited": ""  # 已邀请
    }
}

# 存储公转非权益的相关数据
GZF = {
    "totalDoctor":"",
    "totalFg":"",
    "totalFgIssue":"",
    "totalFgVerification":"",
}
# Successfully_connected  接通成功
# no_answer 无人接听
# interrupt_call 中断呼叫
# call_failure 呼叫失败
# SIP数据统计
SIP = {
    "totalSip": {
        "total_all":"",
        "Successfully_connected": "",
        "no_answer": "",
        "interrupt_call": "",
        "call_failure": "",
    },
    "areaSip": {
        "changchu": {
            "total_all": "",
            "Successfully_connected": "",
            "no_answer": "",
            "interrupt_call": "",
            "call_failure": ""
        },
        "guangzhou": {
            "total_all": "",
            "Successfully_connected": "",
            "no_answer": "",
            "interrupt_call": "",
            "call_failure": ""
        },
        "chengdu": {
            "total_all": "",
            "Successfully_connected": "",
            "no_answer": "",
            "interrupt_call": "",
            "call_failure": ""
        },
        "hefei": {
            "total_all": "",
            "Successfully_connected": "",
            "no_answer": "",
            "interrupt_call": "",
            "call_failure": ""
        },
    }
}

# Successfully_connected  接通成功
# no_answer 无人接听
# interrupt_call 中断呼叫
# call_failure 呼叫失败
# 小程序外呼数据统计
XCXSIP = {
    "outbound_call": {
        "total_all": "",
        "Successfully_connected": "",
        "no_answer": "",
        "interrupt_call": "",
        "call_failure": "",
    },
    "callback": {
        "total_all": "",
        "Successfully_connected": "",
        "no_answer": "",
        "interrupt_call": "",
        "call_failure": "",
    },
}

# 存储减重工作台的相关数据
JZ = {
        "newRegisteredCustomerNum": '',
        "inServiceCustomerNum": '',
        "endedServiceCustomerNum": '',
        "totalCustomerNum": '',
        "todayClueNum": '',
        "toAllocateClueNum": '',
        "invalidClueNum": '',
        "totalClueNum": '',
        "noNeedNutritionistClueNum": ''
    }


# 存储减重数据看板的相关数据
JZKB = {
        "freshTime": '',
        "assignCount": '',
        "claimedCount": '',
        "unClaimedCount": '',
        "invalidCount": '',
        "recentSevenEndCount": '',
        "noOpenCustomerCount": '',
        "waitServiceCustomerCount": '',
        "serviceCustomerCount": '',
        "servicePauseCustomerCount": '',
        "serviceEndCustomerCount": '',
        "activeUserCount": '',
        "normalUserClockCount": '',
        "normalUserAvgCount": '',
        "normalClockTotalCount": '',
        "normalClockAvgCount": '',
        "sportUserCount": '',
        "sportUserAvgCount": '',
        "sportClockTotalCount": '',
        "sportClockAvgCount": '',
        "actualOrderCount": '',
        "actualOrderCountPercent": '',
        "actualPayTotal": '',
        "actualPayTotalPercent": '',
        "firstOrderCount": '',
        "firstOrderCountPercent": '',
        "firstPayTotal": '',
        "firstPayTotalPercent": '',
        "newOrderCount": '',
        "newOrderCountPercent": '',
        "newPayTotal": '',
        "newPayTotalPercent": '',
        "newRenewRate": '',
        "oldOrderCount": '',
        "oldOrderCountPercent": '',
        "oldPayTotal": '',
        "oldPayTotalPercent": '',
        "oldRenewRate": ''

    }



# 存储非公权益包的相关数据
FG = {
    "totalCount":"",
    "childCount":"",
    "totalPaid":"",
    "runningCount":"",
}

#梧桐操作看版数据
CZKB={
    "visitCount": "",
    "fullVisitCount": "",
    "isVisitCount": "",
    "visit7P10Count": "",
    "visit7P25Count": "",
    "importCount": "",
    "importRate": "",
    "importNumCount": "",
    "visitNumCount": "",
    "importNumCountDistinct": "",
    "visitNumCountDistinct": "",
    "full": "",
    "heightWeight": "",
    "boneage": "",
    "stimulateExperiment": "",
    "bloodFullSet": "",
    "mri": "",
    "geneticExamination": "",
    "bultrasound": "",
    "tcmRelated": "",
    "ankle": "",
    "bodyAnalysis": "",
    "boneDensity": "",
    "callCompletingCount": "",
    "callCount": "",
    "callCompletingRate": "",
    "callValidCompletingCount": "",
    "callValidCompletingAccountCount": "",
    "childVisitCount": ""


}


# 公钥
const_publicKey =  (
    "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl9qVBvCFEzcOk6zRyduv\n"
    "/AxqI9O0zfiyJle10BkYpi1M4j6l1xHJ1N2+H6NZxrC8Ex5hLN5WngACW0tfpYsB\n"
    "je+WiDSmENHyjp2hEPN0oNm7Vui1YsukWFeMbYbDKfBwyYnpnXDrYTtRUuiS4y8k\n"
    "2KgIOEnysSgOuqFykDAvif8qrpn3T2ETQcAR0iTq3oG4x0McguZ7GHGBVrfUGXug\n"
    "yzQtzGYd2P9lLCwfXtnkZtOjJgBLVw9vl69//5ym2KspwSTSER4uI2GvL2bVhsln\n"
    "wJuPkslvB7/rHJyYN9ZGNiQVIka9daldr+pqJSN5Mq41xgbYGyjS+7O4ry0jqqek\n"
    "yQIDAQAB"
)
public_key_pem = f"""-----BEGIN PUBLIC KEY-----
{const_publicKey}
-----END PUBLIC KEY-----"""


# AI小吴的相关数据统计
AI_XIAOWU = {
    "yesterday": {
        "accountNum": "",
        "childrenNum": "",
        "chatBabyNum": "",
        "cardUserNum": "",
        "askQuestionBabyNum": "",
    },
    "beforeYesterday": {
        "accountNum": "",
        "childrenNum": "",
        "chatBabyNum": "",
        "cardUserNum": "",
        "askQuestionBabyNum": "",
    },
    "3DayAgo": {
        "accountNum": "",
        "childrenNum": "",
        "chatBabyNum": "",
        "cardUserNum": "",
        "askQuestionBabyNum": "",
    },
    "4DayAgo": {
        "accountNum": "",
        "childrenNum": "",
        "chatBabyNum": "",
        "cardUserNum": "",
        "askQuestionBabyNum": "",
    },
    "5DayAgo": {
        "accountNum": "",
        "childrenNum": "",
        "chatBabyNum": "",
        "cardUserNum": "",
        "askQuestionBabyNum": "",
    },
    "6DayAgo": {
            "accountNum": "",
            "childrenNum": "",
            "chatBabyNum": "",
            "cardUserNum": "",
            "askQuestionBabyNum": "",
    },
    "7DayAgo": {
            "accountNum": "",
            "childrenNum": "",
            "chatBabyNum": "",
            "cardUserNum": "",
            "askQuestionBabyNum": "",
    },
    "history":{
        "repeatCenterUserNum":"",
        "repeatConversationUserNum":""
    }
}
